import request from "@/utils/request2";

const BASE_URL = "/api/v1/virtual-number/profile";

const ProfileAPI = {
  getList(params: any) {
    return request({
      url: `${BASE_URL}/list`,
      method: "get",
      params
    });
  },
  getCount(params: any) {
    return request({
      url: `${BASE_URL}/count`,
      method: "get",
      params
    });
  },
  create(data: any) {
    return request({
      url: `${BASE_URL}/create`,
      method: "post",
      data
    });
  },
  deleteByIds(data: number[]) {
    return request({
      url: `${BASE_URL}/delete`,
      method: "post",
      data
    });
  },
  update(data: any, id: number) {
    return request({
      url: `${BASE_URL}/update/${id}`,
      method: "post",
      data
    });
  },
  balances(params: any, id: number) {
    return request({
      url: `${BASE_URL}/balances/${id}`,
      method: "get",
      params
    });
  }
};

export default ProfileAPI;
